import pictureController from '../controller/picture-controller';

export default [
  // web端
  {
    path: '/web/picture/searchPicture',
    method: 'post',
    action: pictureController.searchPicture
  },
  {
    path: '/web/picture/updatePicture',
    method: 'post',
    action: pictureController.updatePicture
  },
  {
    path: '/web/picture/moveInExcellent',
    method: 'post',
    action: pictureController.moveInExcellent
  },
  {
    path: '/web/picture/moveOut',
    method: 'post',
    action: pictureController.moveOut
  },
  {
    path: '/web/picture/moveInMainPic',
    method: 'post',
    action: pictureController.moveInMainPic
  },
  {
    path: '/web/picture/moveOutExcellent',
    method: 'post',
    action: pictureController.moveOutExcellent
  },
  {
    path: '/web/picture/moveOutMainPic',
    method: 'post',
    action: pictureController.moveOutMainPic
  },
  // 图片上传
  {
    path: '/web/picture/pictureUpload',
    method: 'post',
    action: pictureController.pictureUpload,
  },
  // 将数据同步到数据库中
  {
    path: '/web/picture/uploadDataToMysql',
    method: 'post',
    action: pictureController.uploadDataToMysql,
  },

  // 小程序端————————
  // 获取主页公共图片
  {
    path: '/applet/picture/searchPicture',
    method: 'post',
    action: pictureController.appletSearchPicture
  },
  // 获取主图
  {
    path: '/applet/picture/getMainPicture',
    method: 'post',
    action: pictureController.appletGetMainPicture
  },
  // 获取个人权限的图片
  {
    path: '/applet/picture/searchPersonPicture',
    method: 'post',
    action: pictureController.appletSearchPersonPicture
  }
];
